import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listCommand(query) {
  return request({
    url: '/platform/command/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getCommand(commandId) {
  return request({
    url: '/platform/command/' + commandId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addCommand(data) {
  return request({
    url: '/platform/command',
    method: 'post',
    data: data
  })
}


export function retryCommand(data) {
  return request({
    url: '/platform/command/retrySend',
    method: 'get',
    params: data
  })
}

export function getResultCommand(query) {
  return request({
    url: '/platform/command/getResultCommand',
    method: 'get',
    params: query
  })
}


// 修改【请填写功能名称】
export function updateCommand(data) {
  return request({
    url: '/platform/command',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delCommand(commandId) {
  return request({
    url: '/platform/command/' + commandId,
    method: 'delete'
  })
}
